package org.common.utils.fasttest.entity;

import java.util.concurrent.atomic.AtomicLong;

/**
 * @author zhouzhibing
 * @date 2024/6/17
 */
public class MyAtomicLong {

    private AtomicLong atomicLong;

    public MyAtomicLong(long value) {
        this.atomicLong = new AtomicLong(value);
        System.out.println("MyAtomicLong");
    }

    public MyAtomicLong() {
    }

    public long incrementAndGet() {
        return atomicLong.incrementAndGet();
    }

    public long getValue() {
        return atomicLong.get();
    }

}
